<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>添加设备</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="../../../resources/css/font.css">
		<link rel="stylesheet" href="../../../resources/css/xadmin.css">
		<script type="text/javascript" src="../../../resources/js/jquery.min.js"></script>
		<script type="text/javascript" src="../../../resources/js/jquery.cookie.js"></script>
		<script src="../../../resources/lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="../../../resources/js/xadmin.js"></script>
		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	</head>

	<body>
		<div class="x-body">
			<form class="layui-form" id="eqinformationadd">
				<div class="layui-form-item">
					<label for="L_name" class="layui-form-label">
                    <span class="x-red">*</span>设备名称
                </label>
					<div class="layui-input-inline">
						<input type="text" id="L_name" name="name" required="" lay-verify="name" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_type" class="layui-form-label">
                    <span class="x-red">*</span>设备类型
                </label>
					<div class="layui-input-inline L_type">
						<select id="L_type" name="type" required="" class="valid">
							<option value="">选择类型</option>
							<option value="1">温度计</option>
							<option value="2">湿度计</option>
							<option value="3">气压</option>
							<option value="4">照度</option>
							<option value="5">PM2.5</option>
							<option value="6">湿度计</option>
							<option value="7">湿度计</option>
							<option value="8">湿度计</option>
							<option value="9">湿度计</option>
							<option value="10">湿度计</option>
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_qrcode" class="layui-form-label">
                    <span class="x-red"></span>二维码
                </label>
					<div class="layui-input-inline">
						<input type="text" id="L_qrcode" name="qrcode" lay-verify="qrcode" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_property" class="layui-form-label">
                    <span class="x-red"></span>所有权
                </label>
					<div class="layui-input-inline">
						<input type="text" id="L_property" name="property" lay-verify="property" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_manager" class="layui-form-label">
                    <span class="x-red"></span>管理人
                </label>
					<div class="layui-input-inline">
						<input type="text" id="L_manager" name="manager" lay-verify="manager" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_operator" class="layui-form-label">
                    <span class="x-red"></span>操作员
                </label>
					<div class="layui-input-inline">
						<input type="text" id="L_operator" name="operator" lay-verify="operator" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_produceddate" class="layui-form-label">
                    <span class="x-red"></span>生产日期
                </label>
					<div class="layui-input-inline">
						<input class="layui-input" placeholder="选择生产日期" name="produceddate" id="L_produceddate">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_leavefactorydate" class="layui-form-label">
                    <span class="x-red"></span>出厂日期
                </label>
					<div class="layui-input-inline">
						<input class="layui-input" placeholder="选择生产日期" name="leavefactorydate" id="L_leavefactorydate">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_picture" class="layui-form-label">
                    <span class="x-red"></span>图片
                </label>
					<div class="layui-input-inline">
						<input type="text" id="L_picture" name="picture" lay-verify="picture" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_position" class="layui-form-label">
                    <span class="x-red"></span>定位
                </label>
					<div class="layui-input-inline">
						<input type="text" id="L_position" name="position" lay-verify="position" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<button class="layui-btn x-btn" id="add" lay-filter="add" lay-submit="">增加</button>
				</div>
			</form>
		</div>
		<script type="text/javascript" src="../../layouts/equipment/eq_information_add.js"></script>
		<script>
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();

			layui.use('laydate', function() {
				var laydate = layui.laydate;

				//执行一个laydate实例
				laydate.render({
					elem: '#L_produceddate', //指定元素
					format: 'yyyy-MM-dd HH:mm:ss',
				});
				
				laydate.render({
					elem: '#L_leavefactorydate', //指定元素
					format: 'yyyy-MM-dd HH:mm:ss',
				});
			});
		</script>
	</body>

</html>